<?php
class Cms_View_Helper_Taxonomy extends Zend_View_Helper_Abstract
{
	private $_vocabulary;
	
	public function taxonomy()
	{
		$this->_config = Zend_Registry::get('config');
		$this->_vocabulary = new Cms_Models_Vocabulary();
		return $this;
	}

	public function tree( $vocabulary )
	{
		return $this->_vocabulary->getTree( $vocabulary );		
	}
	
	public function getUrl( $tid )
	{
		return $this->_config->app->url . "/category/view/tid/" . $tid;
	}
	
}